package com.news.service.impl;


import com.news.mapper.RecordMapper;
import com.news.model.Record;
import com.news.model.RecordExample;
import com.news.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecordServiceImpl implements RecordService {
    @Autowired
    private RecordMapper recordMapper;
    @Override
    public List<Record> queryAll() {
        RecordExample recordExample = new RecordExample();
        recordExample.setOrderByClause("id");
        return recordMapper.selectByExample(recordExample);
    }
}
